//
//  PayItemCash.m
//  MBObjectServer
//
//  Created by admin on 3/10/14.
//  Copyright (c) 2014 MBpayer. All rights reserved.
//

#import "PayItemCash.h"

@implementation PayItemCash
- (id)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}

+(id) getPayItemCashFromDictionary :(NSDictionary *) dic {
    PayItemCash * pars = [[PayItemCash alloc]init] ;
    //    pars.ProdID = [dic objectForKey:@"ProdID"];
    pars.OrgCode = [dic objectForKey:@"OrgCode"];
    pars.OwnerOrgCode = [dic objectForKey:@"OwnerOrgCode"];
    pars.PayCode = [dic objectForKey:@"PayCode"];
    pars.PayValue = [dic objectForKey:@"PayValue"];
    pars.Change  = [dic objectForKey:@"Change"];
    pars.ActPayValue = [dic objectForKey:@"ActPayValue"];
    pars.IsOOS = [dic objectForKey:@"IsOOS"];
    return pars ;
}

+(NSMutableDictionary *) getDictionaryFromPayItemCash :(PayItemCash* ) pars {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    //    [dic setObject:pars.ProdID forKey:@"ProdID"];
    [dic setObject:pars.OrgCode forKey:@"OrgCode"];
    [dic setObject:pars.OwnerOrgCode forKey:@"OwnerOrgCode"];
    [dic setObject:pars.PayValue forKey:@"PayValue"];
    [dic setObject:pars.PayCode forKey:@"PayCode"];
    [dic setObject:pars.Change forKey:@"Change"];
    [dic setObject:pars.ActPayValue forKey:@"ActPayValue"];
    [dic setObject:pars.IsOOS forKey:@"IsOOS"];
    return dic ;
}

@end
